<template>
    <select v-bind="$props">
        <app-options></app-options> 
    </select>    
</template>

<script>
export default {
    name: 'AppSelect',
    componentName: 'AppSelect',
    props: ['options', 'result'],
    data() {
        return {
            data: this.result[this.options.key]
        }
    },
    methods: {
        update(val) {
            this.$emit('input', val)
        }
    },
    mapComponents: {
        Option,
        Select
    }
}
</script>
